package com.shishuo.cdn.constant;

public enum OrderCode {
	// 10000  ISP、02000  IDC、00300  WMS、00040  V-VIEW、00005 CMDS
	ISP_CODE("10000","ISP"),IDC_CODE("02000","IDC"),WMS_CODE("00300","WMS"),V_VIEW_CODE("00040","V-VIEW"),CMDS_CODE("00005","CMDS");
	private String id;
	
	private String desc;
	
	private OrderCode(String id,String desc){
		this.id = id;
		this.desc = desc;
	}
	
	public static OrderCode getInstance(String id){
		for(OrderCode orderCode:OrderCode.values()){
			if(orderCode.getId() == id){
				return orderCode;
			}
		}
		throw new IllegalArgumentException("cant find the cardGoodsType by the id:" + id);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
}
